package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClazzMapper {


    List<Clazz> selectClazzDatas( ClazzParam clazzParam);

    void delClazzById(Integer id);

    void insertClass(Clazz clazz);

    @Select("select * from clazz where id =#{id}")
    Clazz getClazzById(Integer id);

    void updateClass(Clazz clazz);

    @Select("select  * from clazz")
    List<Clazz> getAllClazzInfo();

    List<Map> getClazzCount();

    List<Map> getStudentDegreeData();
}
